<?php

declare(strict_types=1);

use Webman\Route;

// 用户列表
Route::get('/user', [app\controller\UserController::class, 'index']);

// 创建用户
Route::post('/user', [app\controller\UserController::class, 'create']);

// 异常测试
Route::get('/user/exception', [app\controller\UserController::class, 'exception']);
